import request from '@/utils/request'

export function login(userAccount, password) {
  return request({
    url: 'v1/userMng/login',
    method: 'post',
    data: {
      userAccount,
      password
    }
  })
}

export function logout(userAccount) {
  return request({
    url: 'v1/userMng/logout',
    method: 'post',
    data: {
      userAccount
    }
  })
}

export function getUserInfo() {
  return request({
    url: 'v1/userMng/info',
    method: 'get'
  })
}
